//
//  LXBBannerCell.m
//  XBRollingView_Example
//
//  Created by Apple on 2021/9/21.
//  Copyright © 2021 liuboliu. All rights reserved.
//

#import "LXBBannerCell.h"

@interface LXBBannerCell ()

@property (nonatomic, strong) UIImageView *imgView;
@property (nonatomic, strong) UILabel *titleLabel;

@end

@implementation LXBBannerCell

- (void)setUpUI
{
    [self addSubview:self.imgView];
    self.imgView.frame = CGRectMake(0, 0, 300, 150);
    [self addSubview:self.titleLabel];
   // self.backgroundColor = [UIColor darkGrayColor];
}

#pragma mark - lazy load
- (UIImageView *)imgView
{
    if (!_imgView) {
        _imgView = [[UIImageView alloc] init];
        _imgView.image = [UIImage imageNamed:@"Image"];
    }
    return _imgView;
}

- (UILabel *)titleLabel
{
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 300, 150)];
        _titleLabel.text = @"我是标题";
    }
    return _titleLabel;
}

@end
